<form id="form_endereco" name="form_endereco" action="<?php echo url_for('usuarios/saveEndereco?user_id='.$user_id) ?>" method="post">
	<input type="hidden" name="sf_method" value="put" />
	<input type="hidden" name="<?php $key; ?>" value="<?php echo $value_key; ?>" />
	<table>
	      <tbody>
		      <tr>
		        <th class="required"><?php echo $endereco['nu_cep']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['nu_cep'] ?>
		          <?php echo form_error('nu_cep'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th class="required"><?php echo $endereco['logradouro']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['logradouro'] ?>
		          <?php echo form_error('logradouro'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th class="required"><?php echo $endereco['logradouro_numero']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['logradouro_numero'] ?>
		          <?php echo form_error('logradouro_numero'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th><?php echo $endereco['logradouro_complemento']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['logradouro_complemento'] ?>
		          <?php echo form_error('logradouro_complemento'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th class="required"><?php echo $endereco['cidade']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['cidade'] ?>
		          <?php echo form_error('cidade'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th class="required"><?php echo $endereco['bairro']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['bairro'] ?>
		          <?php echo form_error('bairro'); ?>
		        </td>
		      </tr>
		      <tr>
		        <th class="required"><?php echo $endereco['sg_uf']->renderLabel() ?></th>
		        <td>
		          <?php echo $endereco['sg_uf']->render() ?>
		          <?php echo form_error('sg_uf'); ?>
		        </td>
		      </tr>
		    </tbody>
		  </table>
</form>